Input event based dynamic panel mode switch

ABSTRACT

A device includes a display client configured to output pixel data at a display and a processor. The processor is configured to determine one or more user input events based on user interaction data. The processor is further configured to select a video mode or a command mode as a selected mode, for operating the display processor, using the quantity of touch events. Pixel data for each frame to be displayed is output to the display client when operating in the video mode. Pixel data for frames that include different pixel data for at least one pixel than a previously output frame is output to the display client when operating in the command mode. The processor is further configured to output an instruction to operate in the selected mode.

TECHNICAL FIELD

This disclosure relates to techniques for graphics processing.

BACKGROUND

Visual content for display, such as content for graphical user interfaces and video games, may be generated by a graphics processing unit (GPU) of a display host. A GPU may convert two-dimensional or three-dimensional (3D) objects into a two-dimensional (2D) pixel representation that may be displayed. The display host may output the two-dimensional (2D) pixel representation to a display client for output at a display (e.g., liquid-crystal display (LCD) panel).

SUMMARY

In general, the techniques of this disclosure relate to a display host configured to dynamically switch a display client between a video mode and a command mode to minimize a bandwidth used to display video content. In video mode, the display host may output pixel data for every frame to the display client. In command mode, the display host may output pixel data only for frames that are different than a previously output frame.

In an example of the disclosure, a method of graphics processing includes determining, by a processor of a computing device, one or more user input events based on user interaction data. The method further includes selecting, by the processor, a video mode or a command mode as a selected mode, based on the one or more user input events. Pixel data for each frame to be displayed is output to the display client when operating in the video mode. Pixel data for frames that include different pixel data for at least one pixel than a previously output frame is output to the display client when operating in the command mode. The method further includes outputting, by the processor, an instruction to operate in the selected mode.

Another example in accordance with the techniques of this disclosure describes a device that includes a display client configured to output pixel data at a display and a processor. The processor is configured to determine one or more user input events based on user interaction data. The processor is further configured to select a video mode or a command mode as a selected mode, for operating the display processor, based on the one or more user input events. Pixel data for each frame to be displayed is output to the display client when operating in the video mode. Pixel data for frames that include different pixel data for at least one pixel than a previously output frame is output to the display client when operating in the command mode. The processor is further configured to output an instruction to operate in the selected mode.

Another example in accordance with the techniques of this disclosure describes a device. The device includes means for determining one or more user input events based on user interaction data. The device further includes means for selecting a video mode or a command mode as a selected mode, based on the one or more user input events. Pixel data for each frame to be displayed is output to the display client when operating in the video mode. Pixel data for frames that include different pixel data for at least one pixel than a previously output frame is output to the display client when operating in the command mode. The device further includes means for outputting an instruction to operate in the selected mode.

Another example in accordance with the techniques of this disclosure describes a non-transitory computer-readable storage medium that includes instructions stored thereon. The instructions, when executed, may cause at a processor to determine one or more user input events based on user interaction data. The instructions may further cause the processor to select a video mode or a command mode as a selected mode, based on the one or more user input events. Pixel data for each frame to be displayed is output to the display client when operating in the video mode. Pixel data for frames that include different pixel data for at least one pixel than a previously output frame is output to the display client when operating in the command mode. The instructions may further cause the at processor to output an instruction to operate in the selected mode.

The details of one or more examples of the disclosure are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the disclosure will be apparent from the description and drawings, and from the claims.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a block diagram illustrating an example computing device that may be used to determine whether to use a video mode or a command mode in accordance with the techniques of this disclosure.

FIG. 2 is a block diagram illustrating example implementations of a central processing unit, a graphics processing unit, system memory, and a frame buffer of FIG. 1 in further detail.

FIG. 3 is a block diagram illustrating example implementations of a central processing unit, a display processor, and a display client of FIG. 1 in further detail.

FIG. 4 is a flowchart illustrating techniques for determining whether to use a video mode or a command mode.

FIG. 5A is a diagram illustrating an example multimedia display processor driver and multimedia display processor pipeline that selects a video mode.

FIG. 5B is a diagram illustrating an example multimedia display processor driver and multimedia display processor pipeline that selects a command mode.

FIG. 6 is a flowchart illustrating a method according to an example of the disclosure.

DETAILED DESCRIPTION

In general, the techniques of this disclosure relate to a display host configured to dynamically switch a display client between a video mode and a command mode to minimize a bandwidth used to display video content. For example, the display host may operate the display client in video mode only when the display client outputs video content with a relatively high frame rate.

In video mode, the display host may output pixel data for each frame to the display client, which outputs the pixel data to a display without storing the pixel data. This operation may be similar to traditional red-green-blue (RGB) interfaces. For example, a graphics processing unit (GPU) pipeline of the display host may include a layer composition step that generates a composite layer for output at the display client, a post processing step that generates an enhanced frame from the composite layer, and a timing control step for controlling when to output pixel data of the enhanced frame to the display client. In this example, the display client constantly (e.g., every 16.6 milliseconds) refreshes a frame output using pixel data received from the display host.

In command mode, the display host may send pixel data to a display client for storage at a buffer (e.g., ping-pong buffer). For example, a GPU pipeline of the display host may include a layer composition step that generates a composite layer for output at the display client and a post processing step that generates an enhanced frame from the composite layer. In command mode, however, the GPU pipeline may only output pixel data for an upcoming frame to a frame buffer that is different than a previously output frame. That is, for example, the display client may continue outputting pixel values stored in a buffer of the display client without further output from the display host. In response to a change of pixel data of at least one pixel, the display host may output pixel data for all or a portion of a frame for storage at a buffer of the display client. Once the pixel data is stored at the frame buffer, the display client may read the pixel data from the buffer and update the pixel data output at a display of the display host.

Accordingly, in command mode, access to a buffer (e.g., a ping-pong buffer) is available to store frame content such that, in some examples, pixel data that changes may be output by the display host to the display client. In video mode, however, the display host, in some examples, may output pixel data for each frame to the display client, which outputs the pixel data without storing the pixel data.

In applications where the display client outputs video content with a relatively high frame rate (e.g., high frames per second (fps)), display clients operating in video mode may use less bandwidth compared to display clients operating in command mode. Examples of applications where the display client outputs video content with a relatively high frame rate may include continuous user interface (UI) scrolling (a newspaper application, settings scroll, etc.), working on a drawing application (a 3D design application, a painting application, etc.), or another application where the display client outputs video content with a relatively high frame rate. Some display use-cases where a display client operating in video mode consumes less power than operating in command mode may include instances where a composition involves a single layer use-case, instances where a composition involving multiple full frame updates with max display refresh rate, and other instances. In many applications, however, display clients operating in command mode use less bandwidth to display graphical content compared to display clients operating in video mode, particularly when the pixel data to be output at the display client is relatively constant. As such, display clients are frequently configured to operate in command mode instead of video mode.

Rather than necessarily operating in command mode, the display host may dynamically switch the display client between the video mode and the command mode using user interaction data generated by a user input device. Examples of a user input device may include a keyboard, mouse, touch screen, microphone, accelerometer, or another user input device. Examples of user input events may include, but are not limited to, for example, a touch interrupt event indicating that a user has touched a touch screen, a force input on a screen, an utterance detected by a microphone, or another user input event. More specifically, for example, a central processing unit (CPU) executing a touch screen driver may cause the CPU to output a touch interrupt event for use by the display client driver, also executing on the CPU, to determine whether to operate the display client in the command mode or the video mode. Although the following example discusses one type of user input event, a touch interrupt event, in other examples, other user input events may be used, such as, for example, a force input on a screen, an utterance detected by a microphone, or another user input event.

The CPU may determine that the display client is to switch from the command mode to the video mode when a number of touch interrupt events (e.g., a number of times a touch screen detects a user interaction at one or more positions of a touch screen, for instance, x and y coordinates, of the touch screen) exceeds a threshold for a pre-determined period of time. For example, a user may tap (e.g., touch-and-release) a touch screen 15 times in a minute period. In this example, the touch screen may generate user interaction data (e.g., a touch interrupt) that indicates 15 touch events within the minute period. In this example, the CPU may determine that the user interaction data indicates 15 touch interrupt events.

In some examples, a user may interact with a touch screen by sliding a finger across a touch screen (e.g., a swipe, a scrolling operation, a drawing operation, etc.) once during in a 10 second duration. In this example, the touch screen may generate user interaction data (e.g., a touch interrupt) that indicates 10 touch events within the 10 second duration. For instance, each touch event may correspond to an interaction of the sliding of the finger across the touch screen at a respective X,Y coordinate of the touch screen. That is, for example, the touch screen may generate user interaction data (e.g., a touch interrupt) that indicates 10 touch events when an interaction of the sliding of the finger across the touch screen from coordinates of 0,0, to coordinates 0,1, to coordinate of 0,2, and so on to coordinates 0,9.

In any case, the CPU may determine that the display client is to switch from the command mode to the video mode when the number of touch interrupt events (e.g., 15) exceeds a threshold (e.g., 10 touch interrupt events) for a pre-determined time (e.g., 30 seconds). In this example, after causing the display client to switch to the video mode, the CPU may determine that the display client is to switch from the video mode to the command mode when a number of touch interrupt events does not exceed a threshold for a pre-determined period of time. For instance, the CPU may determine that the display client is to switch from the video mode to the command mode when a number of touch interrupt events is less than 10 for a 30 second period of time. In instances where a number of touch events is between the first threshold and the second threshold, the CPU may remain in a current mode. In this way, the CPU may dynamically operate the display client in a mode (e.g., command or video) that reduces a bandwidth used compared to systems that operate the display client only in command mode or only in video mode, which results in a reduction of power consumption compared to systems that operate only in video mode or only in command mode.

FIG. 1 is a block diagram illustrating an example computing device 2 that may be used to determine whether to use a video mode or a command mode in accordance with the techniques of this disclosure. Computing device 2 may include, for example, a personal computer, a desktop computer, a laptop computer, a tablet computer, a computer workstation, a video game platform or console, a mobile telephone such as, e.g., a cellular or satellite telephone, a landline telephone, a smartphone, a handheld device such as a portable video game device or a personal digital assistant (PDA), a personal music player, a video player, a display device, a television, a television set-top box, a server, an intermediate network device, a mainframe computer, any mobile device, or any other type of device that processes and/or displays graphical data.

As illustrated in the example of FIG. 1, computing device 2 may include a display host 1, a display client 3, and a bus 17. Display host 1 may include a hardware user input interface 4, a central processing unit (CPU) 6, a memory controller 8, a system memory 10, a graphics processing unit (GPU) 12, a graphics memory 14, a frame buffer 15, a display processor 16, and buses 20 and 22. Display client 3 may include display controller 18, buffer 19, and display 21.

Note that in some examples, graphics memory 14 may be “on-chip” with GPU 12. In some cases, hardware elements of display host 1 may be on-chip, for example, in a system on a chip (SoC) design. Hardware user input interface 4, CPU 6, memory controller 8, GPU 12 and display processor 16 may communicate with each other using bus 20. Memory controller 8 and system memory 10 may also communicate with each other using bus 22.

Buses 17, 20, and 22 may be any of a variety of bus structures, such as a third generation bus (e.g., a HyperTransport bus or an InfiniBand bus), a second generation bus (e.g., an Advanced Graphics Port bus, a Peripheral Component Interconnect (PCI) Express bus, or an Advanced eXentisible Interface (AXI) bus) or another type of bus or device interconnect. It should be noted that the specific configuration of buses and communication interfaces between the different components shown in FIG. 1 is merely exemplary, and other configurations of computing devices and/or other graphics processing systems with the same or different components may be used to implement the techniques of this disclosure. Moreover, there may not be three separate buses 17, 20, and 22, and there may be one bus the interconnects the components of computing device 2.

CPU 6 may include a general-purpose or a special-purpose processor that controls operation of computing device 2. A user may provide input to computing device 2 to cause CPU 6 to execute one or more software applications. The software applications that execute on CPU 6 may include, for example, an operating system, a word processor application, an email application, a spread sheet application, a media player application, a video game application, a graphical user interface application or another program. The user may provide input to computing device 2 via one or more input devices (not shown) such as a keyboard, a mouse, a microphone, a touch screen, a touch pad, or another input device that is coupled to computing device 2 via hardware user input interface 4.

The software applications that execute on CPU 6 may include one or more graphics rendering instructions that instruct CPU 6 to cause the rendering of graphics data by GPU 12 for display on display 21. In some examples, the software instructions may conform to a graphics application programming interface (API), such as, e.g., an Open Graphics Library (OpenGL®) API, an Open Graphics Library Embedded Systems (OpenGL ES) API, a Direct3D API, an X3D API, a RenderMan API, a WebGL API, or any other public or proprietary standard graphics API. The instructions may also conform to so-called heterogeneous computing libraries, such as OpenCL, and/or DirectCompute in various examples.

In order to process the graphics rendering instructions, CPU 6 may issue one or more graphics rendering commands to GPU 12 (e.g., through GPU driver 7 described with respect to FIG. 2) to cause GPU 12 to perform some or all of the rendering of the graphics data. In some examples, the graphics data to be rendered may include a list of graphics primitives, e.g., points, lines, triangles, quadrilaterals, triangle strips, etc.

Memory controller 8 facilitates the transfer of data going into and out of system memory 10. For example, memory controller 8 may receive memory read and write commands, and service such commands with respect to memory system 10 in order to provide memory services for the components in computing device 2. Memory controller 8 is communicatively coupled to system memory 10 via memory bus 22. Although memory controller 8 is illustrated in FIG. 1 as being a processing module that is separate from both CPU 6 and system memory 10, in other examples, some or all of the functionality of memory controller 8 may be implemented on one or both of CPU 6 and system memory 10.

System memory 10 may store program modules and/or instructions that are accessible for execution by CPU 6 and/or data for use by the programs executing on CPU 6. For example, system memory 10 may store a window manager application that is used by CPU 6 to present a graphical user interface (GUI) on display 21. In addition, system memory 10 may store user applications and application surface data associated with the applications.

System memory 10 may additionally store information for use by and/or generated by other components of computing device 2. For example, system memory 10 may act as a device memory for GPU 12 and may store data to be operated on by GPU 12 as well as data resulting from operations performed by GPU 12. For example, system memory 10 may store any combination of texture buffers, depth buffers, stencil buffers, vertex buffers, frame buffers (e.g., frame buffer 15), or the like. System memory 10 may include one or more volatile or non-volatile memories or storage devices, such as, for example, random access memory (RAM), static RAM (SRAM), dynamic RAM (DRAM), read-only memory (ROM), erasable programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), Flash memory, a magnetic data media or an optical storage media.

GPU 12 may be configured to perform graphics operations to render one or more graphics primitives to display 21. Thus, when one of the software applications executing on CPU 6 requires graphics processing, CPU 6 may provide graphics commands and graphics data to GPU 12 for rendering to display 21. The graphics data may include, e.g., drawing commands, state information, primitive information, texture information, etc.

GPU 12 may, in some instances, be built with a highly-parallel structure that provides more efficient processing of complex graphic-related operations than CPU 6. For example, GPU 12 may include a plurality of processing elements that are configured to operate on multiple vertices or pixels in a parallel manner. The highly parallel nature of GPU 12 may, in some instances, allow GPU 12 to draw graphics frames (e.g., GUIs and two-dimensional (2D) and/or three-dimensional (3D) graphics scenes) onto display 21 more quickly than drawing the scenes directly to display 21 using CPU 6.

GPU 12 may, in some instances, be integrated into a motherboard of computing device 2. In other instances, GPU 12 may be present on a graphics card that is installed in a port in the motherboard of computing device 2 or may be otherwise incorporated within a peripheral device configured to interoperate with computing device 2. GPU 12 may include one or more processors, such as one or more microprocessors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), digital signal processors (DSPs), or other equivalent integrated or discrete logic circuitry.

GPU 12 may be directly coupled to graphics memory 14. Thus, GPU 12 may read data from and write data to graphics memory 14 without using bus 20. In other words, GPU 12 may process data locally using a local storage, instead of off-chip memory. This allows GPU 12 to operate in a more efficient manner by eliminating the need of GPU 12 to read and write data via bus 20, which may experience heavy bus traffic. In some instances, however, GPU 12 may not include a separate memory, but instead utilize system memory 10 via bus 20. Graphics memory 14 may include one or more volatile or non-volatile memories or storage devices, such as, e.g., random access memory (RAM), static RAM (SRAM), dynamic RAM (DRAM), erasable programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), Flash memory, a magnetic data media or an optical storage media.

CPU 6 and/or GPU 12 may store rendered pixel data in a frame buffer 15. As shown, frame buffer 15 may be an independent memory. In some examples, frame buffer 15 may be allocated within system memory 10. In some examples, frame buffer 15 may be allocated within graphics memory 14. Frame buffer 15 may be attached to system memory 10 and/or to graphics memory 14.

Display processor 16 may retrieve pixel data from frame buffer 15 and output pixel data to display client 3 via bus 17. In some examples, display processor 16 may process the pixel data. Display processor 16 may include one or more processors, such as one or more microprocessors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), digital signal processors (DSPs), or other equivalent integrated or discrete logic circuitry. Bus 17 may be serial interface. In some examples, bus 17 may be a display serial interface (DSI). Bus 17 may be compliant with the MIPI Display Serial Interface (MIPI DSI℠).

Display controller 18 may receive the data from bus 17. In some examples, display controller 18 may store the data from bus 17 into buffer 19. For example, display controller 18 may output the data stored in buffer 19 to display 21 (e.g., in command mode). In some examples, display controller 18 may output the data from bus 17 directly to display 21 (e.g., in video mode). In any case, display controller 18 may be configured to cause display 21 to display the frame represented by the rendered pixel data. Display controller 18 may include a digital-to-analog converter (DAC) that is configured to convert the digital values retrieved from buffer 19 or via bus 17 into an analog signal consumable by display 21. In other examples, display controller 18 may pass digital values directly to display 21 for processing. Display controller 18 may include one or more processors, such as one or more microprocessors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), digital signal processors (DSPs), or other equivalent integrated or discrete logic circuitry.

While frame buffer 15 may store pixel data local to CPU 6 and GPU 12 (e.g., a display host), buffer 19 may represent a local memory to display 21 (e.g., a display client). For example, during command mode, display 21 may retrieve pixel data for output from buffer 19 rather than relying on an output from display processor 16.

Buffer 19 may be configured for multiple buffering, for example, where one or more portions of buffer 19 may store one block of data such that a reader (e.g., display controller 18, display 21, etc.) may retrieve a frame from buffer 19 while a writer (e.g., CPU 6, GPU 12, display processor 16, etc.) writes to one or more other portions of buffer 19. Some examples of a multiple buffer may include a “ping-pong buffer” or double buffer, which may include a first portion and a second portion. In this example, during a first state, the first portion is being filled with pixel data for an upcoming frame while the second buffer is output on display 21. In this example, during a second state, the second portion is being filled with pixel data for an upcoming frame while the first portion is output on display 21. Buffer 19 may include one or more volatile or non-volatile memories or storage devices, such as, e.g., random access memory (RAM), static RAM (SRAM), dynamic RAM (DRAM), erasable programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), Flash memory, a magnetic data media or an optical storage media.

In some examples, display 21 may include a monitor, a television, a projection device, a liquid crystal display (LCD), a plasma display panel, a light emitting diode (LED) array, such as an organic LED (OLED) display, a cathode ray tube (CRT) display, electronic paper, a surface-conduction electron-emitted display (SED), a laser television display, a nanocrystal display or another type of display unit. Display 21 may be integrated within computing device 2. For instance, display 21 may be a screen of a mobile telephone. Alternatively, display 21 may be a stand-alone device coupled to computer device 2 via a wired or wireless communications link. For instance, display 21 may be a computer monitor or flat panel display connected to a personal computer via a cable or wireless link.

According to examples of the disclosure, computing device 2 may dynamically operate display client 3 in a video mode or a command mode. In video mode, display host 2 may output pixel data for each frame to display client 3 via bus 17. In this example, display client 3 may output the pixel data without storing the pixel data at display client 3 (e.g., at buffer 19). This operation may be similar to traditional RGB interfaces. For example, in video mode, a display processor pipeline of display processor 16 may include a layer composition step that generates a composite layer for output at display client 3, a post processing step that generates an enhanced frame from the composite layer, and a timing control step for controlling when to output pixel data of the enhanced frame to a line buffer of display client 3. In this example, display client 3 constantly refreshes a frame output using pixel data output by display host 1.

In command mode, display host 1 may only output pixel data for an upcoming frame that is different than a previously output frame. That is, for example, display client 3 may be configured to output pixel values stored in buffer 19 without further output from display host 1. In response to a change of pixel data of at least one pixel, display host 1 may output pixel data for all or a portion of a frame for storage at buffer 19. Once the pixel data is stored at buffer 19, display client 3 may read the pixel data from buffer 19 and output pixel data from buffer 19 at display 21.

More specifically, for example, CPU 6 may determine one or more user input events based on user interaction data. For example, CPU 6 may determine a quantity of touch events (e.g., taps on a touch screen, positions interacted with by a swipe, etc.) using touch data generated by hardware user input interface 4. CPU 6 may select a video mode or a command mode as a selected mode, for operating the display processor, using the one or more user input events (e.g., a quantity of touch events, duration of swipe, etc.). For example, in response to determining that the one or more user input events indicates that no user input events occur within a target period of time (e.g., 30 milliseconds), CPU 6 may select the command mode as the selected mode. In some examples, in response to determining that the one or more user input events indicates constant touch events (e.g., a swipe), CPU 6 may select the video mode as the selected mode. In any case, CPU 6 may output an instruction to display processor 16 to operate in the selected mode.

FIG. 2 is a block diagram illustrating example implementations of central processing unit 6, graphics processing unit 12, system memory 10, and frame buffer 15 of FIG. 1 in further detail. CPU 6 may include at least one software application 24, a graphics API 26, and a GPU driver 7, each of which may be one or more software applications or services that execute on CPU 6. GPU 12 may include a graphics processing pipeline 30 that includes a plurality of graphics processing stages that operate together to execute graphics processing commands. GPU 12 may be configured to execute graphics processing pipeline 30 in a variety of rendering modes, including, for example, a binning rendering mode and a direct rendering mode.

As shown in FIG. 2, graphics processing pipeline 30 may include a command engine 32, a geometry processing stage 34, a rasterization stage 36, and a pixel processing pipeline 38. Each of the components in graphics processing pipeline 30 may be implemented as fixed-function components, programmable components (e.g., as part of a shader program executing on a programmable shader unit), or as a combination of fixed-function and programmable components. Memory available to CPU 6 and GPU 12 may include system memory 10 and frame buffer 15. Frame buffer 15 may be a part of system memory 10 or may be separate from system memory 10. Frame buffer 15 may store rendered pixel data.

Software application 24 may be any application that utilizes the functionality of GPU 12. For example, software application 24 may be a GUI application, an operating system, a portable mapping application, a computer-aided design program for engineering or artistic applications, a video game application, or another type of software application that uses 2D or 3D graphics.

Software application 24 may include one or more drawing instructions that instruct GPU 12 to render a graphical user interface (GUI) and/or a graphics scene. For example, the drawing instructions may include instructions that define a set of one or more graphics primitives to be rendered by GPU 12. In some examples, the drawing instructions may, collectively, define all or part of a plurality of windowing surfaces used in a GUI. In additional examples, the drawing instructions may, collectively, define all or part of a graphics scene that includes one or more graphics objects within a model space or world space defined by the application.

Software application 24 may invoke GPU driver 7, via graphics API 26, to issue one or more commands to GPU 12 for rendering one or more graphics primitives into displayable graphics frames. In various examples, the commands may include so-called “packets” of data which may include commands, as well as other information related to rendering a scene (i.e. one or more frames). For example, software application 24 may invoke GPU driver 7, via graphics API 26, to provide primitive definitions to GPU 12. In some instances, the primitive definitions may be provided to GPU 12 in the form of a list of drawing primitives, e.g., triangles, rectangles, triangle fans, triangle strips, etc.

The primitive definitions may include vertex specifications that specify one or more vertices associated with the primitives to be rendered. The vertex specifications may include positional coordinates for each vertex and, in some instances, other attributes associated with the vertex, such as, e.g., color coordinates, normal vectors, and texture coordinates. The primitive definitions may also include primitive type information (e.g., triangle, rectangle, triangle fan, triangle strip, etc.), scaling information, rotation information, and the like.

Based on the instructions issued by software application 24 to GPU driver 7, GPU driver 7 may formulate one or more commands that specify one or more operations for GPU 12 to perform in order to render the primitive. When GPU 12 receives a command from CPU 6, graphics processing pipeline 30 decodes the command and configures one or more processing elements within graphics processing pipeline 30 to perform the operation specified in the command. After performing the specified operations, graphics processing pipeline 30 outputs the rendered data to frame buffer 15 associated with a display device.

Graphics processing pipeline 30 may be configured to execute in one of a plurality of different rendering modes, including a binning rendering mode and a direct rendering mode. The operation of the binning rendering mode and the direct rendering mode will be discussed in more detail below.

GPU driver 7 may be further configured to compile one or more shader programs, and to download the compiled shader programs onto one or more programmable shader units contained within GPU 12. The shader programs may be written in a high level shading language, such as, e.g., an OpenGL Shading Language (GLSL), a High Level Shading Language (HLSL), a C for Graphics (Cg) shading language, etc. The compiled shader programs may include one or more instructions that control the operation of a programmable shader unit within GPU 12. For example, the shader programs may include vertex shader programs and/or pixel shader programs.

A vertex shader program may control the execution of a programmable vertex shader unit or a unified shader unit, and include instructions that specify one or more per-vertex operations. A pixel shader program may include pixel shader programs that control the execution of a programmable pixel shader unit or a unified shader unit, and include instructions that specify one or more per-pixel operations.

GPU driver 7 may also send commands, e.g. command packets including of one or more commands, headers, render scene descriptors, buffers, etc. to GPU 12 that define the rendering mode that GPU 12 should use when rendering a frame or a portion of a frame. For example, GPU driver 7 may determine that a particular frame should be rendered using direct mode rendering, and another frame should be rendered using binning mode rendering. GPU driver 7 may also instruct GPU 12 to determine which rendering mode to when rendering a portion of a frame by sending a GPU command packet to GPU 12.

Graphics processing pipeline 30 may be configured to receive one or more graphics processing commands from CPU 6, via GPU driver 7, and to execute the graphics processing commands to generate displayable graphics frames. As discussed above, graphics processing pipeline 30 includes a plurality of stages that operate together to execute graphics processing commands. It should be noted, however, that such stages need not necessarily be implemented in separate hardware blocks. For example, portions of geometry processing stage 34 and pixel processing pipeline 38 may be implemented as part of a unified shader unit.

Command engine 32 may receive graphics processing commands and configure the remaining processing stages within graphics processing pipeline 30 to perform various operations for carrying out the graphics processing commands. Command engine 32 may receive the command packet from GPU driver 7. The graphics processing commands may include, for example, drawing commands and graphics state commands. The drawing commands may include vertex specification commands that specify positional coordinates for one or more vertices and, in some instances, other attribute values associated with each of the vertices, such as, e.g., color coordinates, normal vectors, texture coordinates and fog coordinates. The graphics state commands may include primitive type commands, transformation commands, lighting commands, etc. The primitive type commands may specify the type of primitive to be rendered and/or how the vertices are combined to form a primitive. The transformation commands may specify the types of transformations to perform on the vertices. The lighting commands may specify the type, direction and/or placement of different lights within a graphics scene. Command engine 32 may cause geometry processing stage 34 to perform geometry processing with respect to vertices and/or primitives associated with one or more received commands.

Geometry processing stage 34 may perform per-vertex operations and/or primitive setup operations on one or more vertices in order to generate primitive data for rasterization stage 36. Each vertex may be associated with a set of attributes, such as, e.g., positional coordinates, color values, a normal vector, and texture coordinates. Geometry processing stage 34 modifies one or more of these attributes according to various per-vertex operations. For example, geometry processing stage 34 may perform one or more transformations on vertex positional coordinates to produce modified vertex positional coordinates.

Geometry processing stage 34 may, for example, apply one or more of a modeling transformation, a viewing transformation, a projection transformation, a ModelView transformation, a ModelViewProjection transformation, a viewport transformation and a depth range scaling transformation to the vertex positional coordinates to generate the modified vertex positional coordinates. In some instances, the vertex positional coordinates may be model space coordinates, and the modified vertex positional coordinates may be screen space coordinates. The screen space coordinates may be obtained after the application of the modeling, viewing, projection and viewport transformations. In some instances, geometry processing stage 34 may also perform per-vertex lighting operations on the vertices to generate modified color coordinates for the vertices. Geometry processing stage 34 may also perform other operations including, e.g., normal transformations, normal normalization operations, view volume clipping, homogenous division and/or backface culling operations.

Geometry processing stage 34 may produce primitive data that includes a set of one or more modified vertices that define a primitive to be rasterized as well as data that specifies how the vertices combine to form a primitive. Each of the modified vertices may include, for example, modified vertex positional coordinates and processed vertex attribute values associated with the vertex. The primitive data may collectively correspond to a primitive to be rasterized by further stages of graphics processing pipeline 30. Conceptually, each vertex may correspond to a corner of a primitive where two edges of the primitive meet. Geometry processing stage 34 may provide the primitive data to rasterization stage 36 for further processing.

In some examples, all or part of geometry processing stage 34 may be implemented by one or more shader programs executing on one or more shader units. For example, geometry processing stage 34 may be implemented, in such examples, by a vertex shader, a geometry shader or any combination thereof. In other examples, geometry processing stage 34 may be implemented as a fixed-function hardware processing pipeline or as a combination of fixed-function hardware and one or more shader programs executing on one or more shader units.

Rasterization stage 36 is configured to receive, from geometry processing stage 34, primitive data that represents a primitive to be rasterized, and to rasterize the primitive to generate a plurality of source pixels that correspond to the rasterized primitive. In some examples, rasterization stage 36 may determine which screen pixel locations are covered by the primitive to be rasterized, and generate a source pixel for each screen pixel location determined to be covered by the primitive.

Rasterization stage 36 may determine which screen pixel locations are covered by a primitive by using techniques known to those of skill in the art, such as, e.g., an edge-walking technique, evaluating edge equations, etc. Rasterization stage 36 may provide the resulting source pixels to pixel processing pipeline 38 for further processing.

The source pixels generated by rasterization stage 36 may correspond to a screen pixel location, e.g., a destination pixel, and be associated with one or more color attributes. All of the source pixels generated for a specific rasterized primitive may be said to be associated with the rasterized primitive. The pixels that are determined by rasterization stage 36 to be covered by a primitive may conceptually include pixels that represent the vertices of the primitive, pixels that represent the edges of the primitive and pixels that represent the interior of the primitive.

Pixel processing pipeline 38 is configured to receive a source pixel associated with a rasterized primitive, and to perform one or more per-pixel operations on the source pixel. Per-pixel operations that may be performed by pixel processing pipeline 38 include, e.g., alpha test, texture mapping, color computation, pixel shading, per-pixel lighting, fog processing, blending, a pixel ownership text, a source alpha test, a stencil test, a depth test, a scissors test and/or stippling operations. In addition, pixel processing pipeline 38 may execute one or more pixel shader programs to perform one or more per-pixel operations. The resulting data produced by pixel processing pipeline 38 may be referred to herein as destination pixel data and stored in frame buffer 15. The destination pixel data may be associated with a destination pixel in frame buffer 15 that has the same display location as the source pixel that was processed. The destination pixel data may include data such as, e.g., color values, destination alpha values, depth values, etc.

Frame buffer 15 stores destination pixels for GPU 12. Each destination pixel may be associated with a unique screen pixel location. In some examples, frame buffer 15 may store color components and a destination alpha value for each destination pixel. For example, frame buffer 15 may store Red, Green, Blue, Alpha (RGBA) components for each pixel where the “RGB” components correspond to color values and the “A” component corresponds to a destination alpha value. Although frame buffer 15 and system memory 10 are illustrated as being separate memory units, in other examples, frame buffer 15 may be part of system memory 10.

FIG. 3 is a block diagram illustrating example implementations of central processing unit 6, display processor 16, and display client 3 of FIG. 1 in further detail. FIG. 3 includes CPU 6, GPU 12, frame buffer 15, display processor 16, hardware user interface 4, and display client 3. As shown, user space 50 and kernel space 70 may be executed by CPU 6. User space 50 may include software application 24 and application framework 54. Kernel space 70 may include GPU driver 7, display driver 76, and hardware interface driver 78.

Software application 24 may include one or more applications that execute on CPU 6, for example, but not limited to, an operating system, a word processor application, an email application, a spread sheet application, a media player application, a video game application, a graphical user interface application or another program. Application framework 54 may include software framework that may be used to with application 24. Examples of application framework 54 may include, but are not limited to, MacApp, Microsoft Foundation Class Library, Oracle Application Development Framework, MARTHA framework, and other application frameworks. In some examples, an application framework 54 may include one or more application program interfaces (APIs).

GPU driver 7 may be configured to cause GPU 12 to operate to perform various functions according to outputs from user space 50. For example, GPU driver 7 may be configured to initiate GPU 12 to perform graphics processing in accordance with graphics processing pipeline 30 of FIG. 2. Hardware user interface driver 78 may be configured to operate functions of hardware user input interface 4 according to outputs from user space 50. For example, hardware user interface driver 78 may be configured to initiate hardware user interface 4 to generate user interaction data. As used herein, user interaction data may indicate one or more user input events. Hardware user interface driver 78 may output user interaction data to display driver 76.

Display driver 76 may be configured to control display processor 16. For example, display driver 76 may cause CPU 6 to determine one or more user input events based on user interaction data output by user interface driver 78. In some examples, display driver 76 may cause CPU 6 to select a video mode or a command mode as a selected mode, for operating display processor 16, based on the one or more user input events and output an instruction to display processor 16 to operate in the selected mode.

Display processor 16 may be configured to operate functions of display client 3 according to outputs from CPU 6. Display processor 16 may include a display interface 80 and digital signal processor (DSP) 82. Display interface 80 may be configured to cause display client 3 to operate in a selected mode. DSP 82 may process pixel data retrieved from frame buffer 15 for output to display client 3. For example, DSP 82 may perform post processing of the pixel data. In some examples, one or more functions of display processor 16, as described herein, may be performed by GPU 12.

In operation, user space 50 may output commands to kernel space 70 for outputting pixel data at display client 3. GPU driver 7 may cause CPU 6 to generate one or more instructions for causing GPU 12 to generate the pixel data at frame buffer 15. For instance, GPU 12 executes graphics processing pipeline 30 of FIG. 2. Hardware user interface driver 78 generates user interaction data. Display driver 76 causes CPU 6 to determine one or more user input events based on the user interaction data. For example, display driver 76 may cause hardware user interface driver 78 to output an interrupt to display driver 76, which determines one or more user input events based on the user interaction data. For instance, display driver 76 may cause CPU 6 to determine a quantity of touch events based on the user interaction data.

Display driver 76 may cause CPU 6 to select the video mode as the selected mode based on the one or more user input events. For example, display driver 76 may cause CPU 6 to select the video mode as the selected mode when the quantity of touch events exceeds a first threshold within a time period. In some examples, the first threshold corresponds (e.g., equals, matches, relates to, etc.) to two or more touch events. In some examples, display driver 76 causes CPU 6 to select the command mode as the selected mode when the quantity of touch events does not exceed a second threshold. In some examples, the second threshold corresponds to zero touch events.

Display driver 76 may cause CPU 6 to select a current mode as the selected mode. For instance, display driver 76 may cause CPU 6 to select the video mode as the selected mode when operating in video mode and when the quantity of touch events is less than the first threshold and greater than the second threshold for a time period. In some instances, display driver 76 may cause CPU 6 to select the command mode as the selected mode when operating in command mode and when the quantity of touch events is less than the first threshold and greater than the second threshold for a time period.

In some examples, display driver 76 causes CPU 6 to determine whether the one or more user input events indicate a constant user input event. For example, display driver 76 causes CPU 6 to determine whether the one or more user input events indicates a constant touch event. In response to determining that the one or more user input events indicate constant touch events, display driver 76 causes CPU 6 to select the video mode as the selected mode. As used herein, constant touch events may indicate that a user is performing a scrolling operation or a drawing operation within a time period.

In some examples, display driver 76 causes CPU 6 to determine whether the quantity of touch events indicates that no touch events occur within a period of time. In response to determining that the quantity of touch events indicates that no touch events occur within a target period of time, display driver 76 causes CPU 6 to select the command mode as the selected mode.

Display driver 76 may cause CPU 6 to output an instruction to display processor 16 to operate in the selected mode. In response to the instruction, DSP 82 performs post-processing of pixel data for the selected mode and display interface 80 outputs the pixel data according to the selected mode. For example, display interface 80 outputs, to display client 3, pixel data for frames that include different pixel data for at least one pixel than a previously output frame when the selected mode corresponds to a command mode. In some examples, display interface 80 may refrain from outputting, to display client 3, pixel data for frames that do not include different pixel data for at least one pixel than a previously output frame when the selected mode corresponds to a command mode. In some examples, display interface 80 outputs, to display client 3, pixel data for each frame to be displayed when the selected mode corresponds to a video mode.

Although FIG. 3 describes display processor 16 as separate from GPU 12, in some examples one or more processes performed by display processor 16 may be instead performed by GPU 12. That is, for example, any action described as performed by display processor 16 may be performed by GPU 12. Moreover, in some examples, display processor 16 may be omitted. For instance, GPU 12 may perform one or more functions of DSP 82 and/or display interface 80. In some instances, GPU driver 7 may perform one or more functions of display driver 76.

FIG. 4 is a flowchart illustrating techniques for determining whether to use a video mode or a command mode. In the example of FIG. 4, hardware user input interface 4 receives a user interaction (e.g., finger tap, finger swipe, etc.). In this example, hardware user input interface 4 generates user interaction data 102. For example, hardware user input interface 4 may generate the user interaction data 102 to indicate a touch event when a touch screen of computing device 2 of FIG. 1 generates data indicating at least one user interaction with the touch screen. Although this example uses a touch screen, some examples may use, for example, a microphone to detect an utterance, an accelerometer to detect a movement, a keyboard to detect an interaction with a key, or another input device. User interface driver 78 may output user interaction data 104. For example, user interface driver 78 may output user interaction data 104 to display driver 76.

Display driver 76 may cause a processor (e.g., CPU 6 of FIG. 1) to output one or more instructions to generate pixel data for a selected mode 106. For example, in response to selecting the command mode as the selected mode, display driver 76 may cause a processor to output, to DSP 82, one or more instructions to generate pixel data representative of each upcoming frame that include different pixel data for at least one pixel than a previously output frame. In some examples, in response to selecting the video mode as the selected mode, display driver 76 may cause a processor to output, to DSP 82, one or more instructions to generate a stream of pixel data representative of each upcoming frame.

DSP 82 may generate pixel data 107 for output to the display client (e.g., display client 3 of FIG. 1) according to the selected mode. For example, DSP 82 may generate pixel data for each frame when the selected mode is video mode. In some examples, DSP 82 may generate pixel data for pixel data representative of each upcoming frame that include different pixel data for at least one pixel than a previously output frame when the selected mode is command mode. In any case, display interface 80 may output pixel data 108 to display interface 80. For instance, display interface 80 may output the pixel data to display client 3 according to an interface protocol, such as, but not limited to, MIPI Display Serial Interface (MIPI DSI℠).

In the example of FIG. 4, display driver 76 may output an instruction to operate in a selected mode 110. For example, display driver 76 may output an instruction to operate in a video mode or a command mode to display interface 80 of display processor 16. Display interface 80 may output an instruction to operate in a selected mode 112. For example, display interface 80 may output an instruction to operate in video mode to display client 3 of FIG. 1 when the selected mode is video mode. In some examples, display interface 80 may output an instruction to operate in command mode to display client 3 of FIG. 1 when the selected mode is command mode.

FIG. 5A is a diagram illustrating an example multimedia display processor (MDP) driver 276 and MDP pipeline 282 that selects a video mode. System 200 includes display hardware abstraction layer (HAL) 254, MDP driver 276, input event handler 278, display serial interface (DSI) interface 280, and MDP 216. MDP driver 276 may be an example of display driver 76 of FIG. 3. Display HAL 254 may be an example of application framework 54. Input event handler 278 may be an example of hardware user interface driver 78 of FIG. 3. DSI interface 280 may be an example of display interface 80 of FIG. 3. MDP 216 may be an example of display processor 16. Although DSI interface 280 is illustrated in FIG. 5A as separate from MDP 216, in some examples, MDP 216 may include DSI interface 280.

MDP 216 may include an MDP pipeline 282 that includes a plurality of graphics processing stages that operate together to execute graphics processing commands. As shown in FIG. 5A, MDP pipeline 282 may include a layer composition 284, post processing 286, and a timing engine and ping-pong buffer 288. Each of the components in MDP pipeline 282 may be implemented as fixed-function components, programmable components, or as a combination of fixed-function and programmable components.

Layer composition 284 may compose a layer for pixel data. Post processing 286 may enhance a frame. For example, post processing 286 may modify a gamma level (e.g., brightness) or color saturation of a frame for presentation at a display. Timing engine and ping-pong buffer 288 may determine a timing to output pixel data to DSI interface 280 when operating in video mode. Timing engine and ping-pong buffer 288 may output pixel data to a ping-pong buffer via DSI interface 280 when operating in command mode. DSI interface 280 may output pixel data to a display client. For example, DSI interface 280 may output pixel data to display client 3 of FIG. 1.

As previously noted, in some systems, command mode displays are preferred over video mode displays due to potential power saving capabilities during static screen use-cases. However, there are certain display use-cases where video mode consumes lesser power than command mode. Mostly these are continuous high frames-per-second (fps) use-cases.

For example, during animation (e.g., a set of frames output at a maximum frame rate per second), for a 1080p, 60 fps, RGBX_8888_UBWC layer, command mode, MDP 216 has a clock of 149 Mhz and a bandwidth of 469 Mbps. In this example, during the animation, for a 1080p RGBX_8888_UBWC layer, video mode, MDP 216 has a clock of 138 Mhz and a bandwidth of 398 Mbps. As such, using video mode may amount to a 17% reduction in bandwidth. Therefore, for a panel supporting both video and command mode, examples described herein may dynamically switch to video mode to save power for some high fps use-cases. Examples of high fps use-cases may include, but are not limited to, continuous UI scrolling (e.g., a newspaper application, a settings application scrolling), working on a drawing application (e.g., a 3D design application, a paint application), and other high fps use-cases. Based on events from input event handler 278 (e.g. touch, mouse, pressure sensor), MDP driver 276 can take input and decide to make a panel switch.

According to one or more examples described herein, MDP driver 276 causes a processor to register an input handler. Registering an input handler may be a Linux™ kernel concept where one or more drivers register to any input events generated by a hardware input interface (e.g., hardware input interface 4 of FIG. 1). Registering an input handler may represent an interface which allows a touch sensitive device (e.g., hardware user interface 4) to send events to MDP driver 276. In this example, MDP driver 276 may connect or disconnect to input event handler 278 for communication input device.

MDP driver 276 may process the input event, where the input event is recognized by input event handler 278. In response to processing an event, MDP driver 276 may cause a processor to determine a mode switch based on input device events. For example, if the input device events indicate that there is a UI scrolling/drawing use-case, where there are constant touch events or constant UI updates, MDP driver 276 may cause a processor to perform a mode switch to video mode to save power compared to command mode. However, the input device events indicate that input events have stopped, then MDP driver 276 may cause a processor to perform a mode switch to command mode to move to static screen and disable MDP clocks. In some examples, performing a mode switch has relatively low latency compare to the saved bandwidth.

In the example of FIG. 5A, MDP driver 276 causes the processor (e.g., CPU 6) to select a video mode as a selected mode. In response to selecting the video mode as the selected mode, MDP driver 276 further causes the processor (e.g., CPU 6) to output to DSI interface 280 an indication of a mode switch from command mode to video mode 290A. Additionally, and in response to selecting the video mode as the selected mode, MDP driver 276 further causes the processor (e.g., CPU 6) to output one or more instructions to generate pixel data for the video mode 292A to MDP 216.

Layer composition 284 composes a layer for a frame according to the one or more instructions from MDP driver 276. Post processing 286 enhances pixel data for the layer output by layer composition 284. Timing engine and ping-pong buffer 288 outputs an image stream 294A of each frame to be output. For example, timing engine and ping-pong buffer 288 determines a timing to output pixel data to DSI interface 280 and outputs the pixel data to DSI interface 280. For example, timing engine and ping-pong buffer 288 outputs pixel data for each frame to DSI interface 280.

FIG. 5B is a diagram illustrating an example multimedia display MDP driver 276 and MDP pipeline 282 that selects a command mode. In the example of FIG. 5B, display HAL 254 outputs instructions to generate a frame. Input event handler 278 outputs user interaction data to MDP driver 276. MDP driver 276 causes a processor (e.g., CPU 6) to determine a quantity of touch events based on user interaction data.

In the example of FIG. 5B, MDP driver 276 further causes the processor (e.g., CPU 6) to select a command mode as a selected mode. In response to selecting the command mode as the selected mode, MDP driver 276 further causes the processor (e.g., CPU 6) to output to DSI interface 280 an indication of a mode switch from video mode to command mode (290B). Additionally and in response to selecting the command mode as the selected mode, MDP driver 276 further causes the processor (e.g., CPU 6) to output one or more instructions to generate pixel data for the video mode (292B) to MDP 216.

Layer composition 284 composes a layer for a frame according to the one or more instructions from MDP driver 276. Post processing 286 enhances pixel data for the layer output by layer composition 284. Timing engine and ping-pong buffer 288 may output pixel data (294B). For example, timing engine and ping-pong buffer 288 may output pixel data to ping-pong buffer 219 via DSI interface 280.

FIG. 6 is a flowchart illustrating a method according to an example of the disclosure. The method of FIG. 6 may be performed by CPU 6, and/or any other hardware, firmware, software element, or combination thereof, residing on computing device 2. CPU 6 may receive user interaction data (302). For example, display driver 76 may cause CPU 6 to receive user interaction data from hardware user input interface 4 of FIG. 3, via hardware user interface driver 78. CPU 6 may determine one or more user input events based on user interaction data (304). For example, display driver 76 may cause CPU 6 to determine a quantity of touch events using user interaction data.

CPU 6 may select a video mode or command mode as a selected mode for operating a display processor (306). For example, display driver 76 may cause CPU 6 to select a video mode as a selected mode for operating display processor 16 of FIG. 3 when the quantity of touch events indicates constant touch events. In some examples, display driver 76 may cause CPU 6 to select a command mode as a selected mode for operating display processor 16 of FIG. 3 when the quantity of touch events corresponds to zero touch events.

CPU 6 may output an instruction to operate in the selected mode (310). For example, display driver 76 of FIG. 3 may cause CPU 6 to output an instruction to display processor 16 to operate in the selected mode. In some examples, GPU driver 7 of FIG. 3 may cause CPU 6 to output an instruction to GPU 12 to operate in the selected mode.

In one or more examples, the functions described above may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored as one or more instructions or code on an article of manufacture including a non-transitory computer-readable medium. Computer-readable media may include computer data storage media. Data storage media may be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, code and/or data structures for implementation of the techniques described in this disclosure. By way of example, and not limitation, such computer-readable media can include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage, or other magnetic storage devices, flash memory, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Disk and disc, as used herein, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.

The code may be executed by one or more processors, such as one or more DSPs, general purpose microprocessors, ASICs, FPGAs, or other equivalent integrated or discrete logic circuitry. In addition, in some aspects, the functionality described herein may be provided within dedicated hardware and/or software modules. Also, the techniques could be fully implemented in one or more circuits or logic elements.

The techniques of this disclosure may be implemented in a wide variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC) or a set of ICs (e.g., a chip set). Various components, modules, or units are described in this disclosure to emphasize functional aspects of devices configured to perform the disclosed techniques, but do not necessarily require realization by different hardware units. Rather, as described above, various units may be combined in a codec hardware unit or provided by a collection of interoperative hardware units, including one or more processors as described above, in conjunction with suitable software and/or firmware.

Various examples have been described. These and other examples are within the scope of the following claims. 

What is claimed is:
 1. A method for graphics processing comprising: determining, by a processor of a computing device, one or more user input events based on user interaction data; selecting, by the processor, a video mode or a command mode as a selected mode, based on the one or more user input events, wherein pixel data for each frame to be displayed is output to a display client when operating in the video mode and wherein pixel data for frames that include different pixel data for at least one pixel than a previously output frame is output to the display client when operating in the command mode; and outputting, by the processor, an instruction to operate in the selected mode.
 2. The method of claim 1, wherein determining the one or more user input events comprises determining a quantity of touch events and wherein selecting the video mode or the command mode as the selected mode comprises: selecting the video mode as the selected mode when the quantity of touch events exceeds a first threshold; and selecting the command mode as the selected mode when the quantity of touch events does not exceed a second threshold, the second threshold being equal to or less than the first threshold.
 3. The method of claim 2, wherein the first threshold corresponds to two or more touch events.
 4. The method of claim 2, wherein the second threshold corresponds to zero touch events.
 5. The method of claim 1, wherein selecting the video mode or the command mode as the selected mode comprises: in response to determining that the one or more user input events indicate one or more constant user input events, selecting the video mode as the selected mode.
 6. The method of claim 5, wherein the one or more constant user input events indicate that a user is performing a scrolling operation or a drawing operation.
 7. The method of claim 1, wherein selecting the video mode or the command mode as the selected mode comprises: in response to determining that the one or more user input events indicate that no user input events occur within a period of time, selecting the command mode as the selected mode.
 8. The method of claim 1, further comprising: outputting, by the processor, one or more instructions to generate pixel data for the selected mode.
 9. The method of claim 8, wherein outputting the one or more instructions to generate the pixel data for the selected mode comprises: in response to selecting the command mode as the selected mode, outputting, by the processor, one or more instructions to generate pixel data for storage at a buffer of the display client.
 10. The method of claim 8, wherein outputting the one or more instructions to generate the pixel data for the selected mode comprises: in response to selecting the video mode as the selected mode, outputting, by the processor, one or more instructions to generate a stream of pixel data representative of upcoming frames.
 11. The method of claim 1, further comprising: generating the user interaction data to indicate a user input event when a touch screen of the computing device generates data indicating at least one user interaction with the touch screen.
 12. The method of claim 1, wherein the processor is a first processor and wherein selecting the video mode or the command mode as the selected mode comprises: selecting, by the first processor, the video mode or the command mode as the selected mode, for operating a second processor of the computing device, based on the one or more user input events, wherein the second processor outputs pixel data for each frame to be displayed when operating in the video mode and wherein the second processor outputs pixel data for frames that include different pixel data for at least one pixel than a previously output frame is output to the display client when operating in the command mode.
 13. The method of claim 12, wherein the first processor is a central processing unit and wherein the second processor is a display processor or a graphics processing unit.
 14. A device for graphics processing comprising: a display client configured to output pixel data at a display; a processor configured to: determine one or more user input events based on user interaction data; select a video mode or a command mode as a selected mode, based on the one or more user input events, wherein pixel data for each frame to be displayed is output to the display client when operating in the video mode and wherein pixel data for frames that include different pixel data for at least one pixel than a previously output frame is output to the display client when operating in the command mode; and output an instruction to operate in the selected mode.
 15. The device of claim 14, wherein, to determine the one or more user input events, the processor is configured to determine a quantity of touch events and wherein, to select the video mode or the command mode as the selected mode, the processor is configured to: select the video mode as the selected mode when the quantity of touch events exceeds a first threshold; and select the command mode as the selected mode when the quantity of touch events does not exceed a second threshold, the second threshold being equal to or less than the first threshold.
 16. The device of claim 15, wherein the first threshold corresponds to two or more touch events.
 17. The device of claim 15, wherein the second threshold corresponds to zero touch events.
 18. The device of claim 14, wherein, to select the video mode or the command mode as the selected mode, the processor is configured to: in response to determining that the one or more user input events indicate one or more constant user input events, select the video mode as the selected mode.
 19. The device of claim 18, wherein the one or more constant user input events indicate that a user is performing a scrolling operation or a drawing operation.
 20. The device of claim 14, wherein, to select the video mode or the command mode as the selected mode, the processor is configured to: in response to determining that the one or more user input events indicate that no user input events occur within a period of time, select the command mode as the selected mode.
 21. The device of claim 14, wherein the processor is further configured to: output one or more instructions to generate pixel data for the selected mode.
 22. The device of claim 21, wherein, to output the one or more instructions to generate the pixel data for the selected mode, the processor is configured to: in response to selecting the command mode as the selected mode, output one or more instructions to generate pixel data for storage at a buffer of the display client.
 23. The device of claim 21, wherein, to output the one or more instructions to generate the pixel data for the selected mode, the processor is configured to: in response to selecting the video mode as the selected mode, output one or more instructions to generate a stream of pixel data representative of upcoming frames.
 24. The device of claim 14, further comprising: a hardware user input interface configured to generate the user interaction data to indicate a user input event when the touch screen generates data indicating at least one user interaction with the touch screen.
 25. The device of claim 14, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
 26. The device of claim 14, wherein the device comprises at least one of: an integrated circuit; a microprocessor; or a wireless communication device.
 27. A device for graphics processing comprising: means for determining one or more user input events based on user interaction data; means for selecting a video mode or a command mode as a selected mode, based on the one or more user input events, wherein pixel data for each frame to be displayed is output to a display client when operating in the video mode and wherein pixel data for frames that include different pixel data for at least one pixel than a previously output frame is output to the display client when operating in the command mode; and means for outputting an instruction to operate in the selected mode.
 28. The device of claim 27, wherein means for determining the one or more user input events comprises means for determining a quantity of touch events and wherein means for selecting the video mode or the command mode as the selected mode comprises: means for selecting the video mode as the selected mode when the quantity of touch events exceeds a first threshold; and means for selecting the command mode as the selected mode when the quantity of touch events does not exceed a second threshold, the second threshold being equal to or less than the first threshold.
 29. The device of claim 28, wherein the first threshold corresponds to two or more touch events.
 30. A non-transitory computer-readable storage medium storing instructions that, when executed, cause a processor to: determine one or more user input events based on user interaction data; select a video mode or a command mode as a selected mode, based on the one or more user input events, wherein pixel data for each frame to be displayed is output to a display client when operating in the video mode and wherein pixel data for frames that include different pixel data for at least one pixel than a previously output frame is output to the display client when operating in the command mode; and output an instruction to operate in the selected mode. 